<template>
  <div class="content_box">
    <div class="bj">
      <img mode="widthFix" class="img" src="https://jingguowh.oss-cn-beijing.aliyuncs.com/static/imgkf2.png" alt="">
      <p class="ewm">
        <img :show-menu-by-longpress="true" :src="channelInfo&&channelInfo.customerCode" alt="">
      </p>
    </div>
  </div>
</template>

<script>
import { 
  getToken,
  getUserPhone
} from "@/utils/auth";
import { getSelectChannel} from "@/api";
export default {
  data() {
    return {
      couponMsg:{},
      activityId:'',
      channelInfo:null
    };
  },
  methods: {

    getChannelInfo(){
      getSelectChannel().then(res=>{
        if (res.statusCode == '00000') {
          this.channelInfo = res.data
        }
      })
    },

    // if(!getUserPhone()){
    //     wx.navigateTo({
    //       url: '/pages/authorization/main',
    //     });
    //     return
    //   }
    // 领取
    
  },
  onShow(){
   this.getChannelInfo()
  },
  onLoad(options) {
    console.log(options)
    if(options.scene){// 扫码进来
      this.activityId = options.scene
    }else{// 传值进来
      this.activityId = options.activityId
    }
    
  },
};
</script>

<style lang="scss" scoped>
/* 去除button默认样式 */

  button::after {
   border: none;
  }

  button {
    background-color: transparent;
    padding-left: 0;
    padding-right: 0;
    line-height:inherit;
  }
  button {
  border-radius:0;
}
.bj{
  position: relative;
  .img{
    width: 100%;
  }
  .ewm{
    width: 100%;
    position: absolute;
    top:420rpx;
    text-align: center;
    img{
      width: 460rpx;
      height: 460rpx;
    }
  }
}
</style>